package com.example.casper.Experiment2024.data;

import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.provider.MediaStore;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.Serializable;

public class BookItem implements Serializable{
    public String getTitle() {
        return title;
    }

    //public double getPrice() {
    //    return price;
    //}

    public int getResourceId() {
        return resourceId;
    }
    public String getContext_daka() {
        return context_daka;
    }
    public String getUri_str(){return uri_str;}
    public double get_la(){return latitude;}
    public double get_lo(){return longitude;}
    public byte[] get_byte(){return byte_bit;}

    private String title;
    private String context_daka;
    private String uri_str;
    private int resourceId;
    private double latitude;
    private double longitude;
    private byte[] byte_bit;


    public void setTitle(String itemName) {
        this.title=itemName;
    }
    public void setContext_daka(String context_daka) {
        this.context_daka = context_daka;
    }
    public void setUri_str(String uri_s){this.uri_str=uri_s;}
    public void set_position(double latitude_0,double longitude_0){
        this.latitude=latitude_0;
        this.longitude=longitude_0;
    }
    public void setByte(byte[] b){this.byte_bit=b;}
    //public void setPrice(double price) {
    //    this.price = price;
    //}


//    public BookItem(String itemTitle, String contextDaka,String uri_s) {
//        this.title=itemTitle;
//        this.context_daka = contextDaka;
//        this.uri_str=uri_s;
//    }
    public BookItem(String itemTitle, String contextDaka,byte[] byd) {
        this.title=itemTitle;
        this.context_daka = contextDaka;
        this.byte_bit=byd;
    }

}